package com.qumitech.visualnovel.datasource.console;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.console.MuchangwuyuTermDO;

public interface MuchangwuyuTermDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MuchangwuyuTermDO record);

    int insertSelective(MuchangwuyuTermDO record);

    MuchangwuyuTermDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MuchangwuyuTermDO record);

    int updateByPrimaryKey(MuchangwuyuTermDO record);

    int getCount(
            @Param("tableName") String tableName,
            @Param("termId") String termId,
            @Param("itemType") String itemType,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime);

    List<MuchangwuyuTermDO> getList(@Param("tableName") String tableName,
                                    @Param("termId") String termId,
                                    @Param("itemType") String itemType,
                                    @Param("startTime") String startTime,
                                    @Param("endTime") String endTime,
                                    @Param("offset") int offset,
                                    @Param("limit") int limit);

    MuchangwuyuTermDO getTotal(
            @Param("tableName") String tableName,
            @Param("termId") String termId,
            @Param("itemType") String itemType,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime);
}